package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.linlinjava.litemall.db.models.*;

public interface AfterSaleService extends IService<AfterSale> {

    public AfterSale findById(Long userId, Long id);

    public IPage<AfterSale> queryList(Long userId, Short status, Integer pageNo, Integer pageSize) ;
    public IPage<AfterSale> querySelective(Long orderId, String afterSaleSn, Short status, Integer pageNo, Integer pageSize) ;

    public int countByAfterSaleSn(Long userId, String afterSaleSn) ;

    public String generateAfterSaleSn(Long userId) ;

    public void deleteByOrderId(Long userId, Long orderId) ;

    public AfterSale findByOrderId(Long userId, Long orderId);
}
